package com.kfyty.hot.deploy.api;

import com.kfyty.loveqq.framework.core.autoconfig.annotation.Component;

import java.io.IOException;
import java.io.OutputStream;
import java.security.cert.Extension;

/**
 * 动态加载示例实现
 */
@Component
public class ExampleExtension implements Extension {

    public ExampleExtension() {
        System.out.println("ExampleExtension");
    }

    @Override
    public String getId() {
        return "example";
    }

    @Override
    public boolean isCritical() {
        return false;
    }

    @Override
    public byte[] getValue() {
        return new byte[0];
    }

    @Override
    public void encode(OutputStream out) throws IOException {

    }
}
